<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="../css/register.css"> <!-- 引入外部 CSS 文件 -->
    <!-- 添加 CryptoJS 库 -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
</head>
<body>
<div class="container">
    <!-- 左侧布局 -->
    <div class="left-side">
        <h1>创建账户</h1>
        <p>请输入以下信息以注册一个新账户</p>
    </div>

    <!-- 右侧布局，注册表单 -->
    <div class="right-side">
        <h2>玩家注册</h2>
        <form id="register-form"  method="POST">
            <label for="username">账号：</label>
            <input type="text" id="username" name="username" placeholder="请输入用户名" required>

            <label for="password">密码：</label>
            <input type="password" id="password" name="password" placeholder="请输入密码" required>

            <label for="confirm-password">确认密码：</label>
            <input type="password" id="confirm-password" name="confirm-password" placeholder="请确认密码" required>

            <button type="submit">注册</button>
        </form>

        <p>已有账户？<a href="login.html">登录</a></p>
    </div>
</div>

<!-- 引入樱花飘落效果的脚本 -->
<script src="../js/sakura.js"></script>
<!-- 引入外部 JavaScript 文件 -->
<script src="../js/register.js"></script>
</body>
</html>
